﻿using System;
using System.Collections.Generic;
using KM.DAT;
using KM.ENT;

/// <summary>
/// This is busLoaiTin class
/// </summary>
namespace KM.BUS
{
    public class busLoaiTin
    {
        public busLoaiTin()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public void createEdit(entLoaiTin entLT)
        {
            datLoaiTin datLT = new datLoaiTin();
            datLT.createEdit(entLT);
        }
        public List<entLoaiTin> getAll()
        {
            datLoaiTin datLT = new datLoaiTin();
            List<entLoaiTin> lst = new List<entLoaiTin>();
            lst = datLT.getAll();
            return lst;
        }
        public entLoaiTin getInfo(int Id)
        {
            datLoaiTin datLT = new datLoaiTin();
            entLoaiTin entLTNew = new entLoaiTin();
            entLTNew = datLT.getInfo(Id);
            return entLTNew;
        }
        public bool delete(int Id)
        {
            datLoaiTin datLT = new datLoaiTin();
            datLT.delete(Id);
            return true;
        }
    }
}
